home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts1-10
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Leap year
- Date: Sun, 03 Mar 96 07:45:06 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4hbiln$899@sam.inforamp.net>
- References: <3135A7F2.2120@hiwaay.net>
- NNTP-Posting-Host: ts1-10.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <3135A7F2.2120@hiwaay.net>, Lance Perry <lperry@hiwaay.net> wrote:
- >Can someone be kind enough to post the formula for Leap Year
- >or point me to the place where this can be found?
- >
- >lperry@hiwaay.net
-
- bool IsLeapYear(int x)
- {
- return ((x&4) && ((!(x&100)) || (x&1000)));
- }
-
- I hope I got everything right.
-
- Agrivar
-